﻿using BCCommon;
using BCCommon.TMS.Driver;
using BCCommon.TMS.Order;
using BCCommon.TMS.Task;
using BCDto.Sim.Admin.Admin;
using BCDto.Sim.Admin.AdminOperationRecord;
using BCDto.TMS.KanBan.AgentKanBan;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCService.TMS.KanBan.AgentKanBan
{
    /// <summary>
    /// 代理商看板
    /// </summary>
    public interface IAgentKanBanService
    {
        /// <summary>
        /// 获取司机/骑手累计信息
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="driverRoleType">司机角色类型</param>
        /// <returns></returns>
        DriverAnalysisDto GetDriverAnalysis(AdminDto admin, DriverRoleType driverRoleType);

        /// <summary>
        /// 获取订单累计信息
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="orderStatus">订单状态</param>
        /// <returns></returns>
        OrderAnalysisDto GetOrderAnalysis(AdminDto admin, OrderStatus orderStatus);

        /// <summary>
        /// 获取订单统计信息
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="orderStatus">订单状态</param>
        /// <param name="completeTime">订单完成时间</param>
        /// <returns></returns>
        OrderStatisticDto GetOrderStatistic(AdminDto admin, OrderStatus orderStatus, DateTime? completeTime);

        /// <summary>
        /// 获取订单区域分析信息
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="orderStatus">订单状态</param>
        /// <param name="completeTime">完成时间</param>
        /// <returns></returns>
        OrderAreaAnalysisDto GetOrderAreaAnalysis(AdminDto admin, OrderStatus orderStatus, DateTime? completeTime);

        /// <summary>
        /// 获取一组系统管理员操作记录信息。
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">自 1 开始的页码编号。</param>
        /// <param name="pageSize">每页显示的数据条数。</param>
        /// <returns></returns>
        PageableList<AdminOperationRecordDto> GetAdminOperationRecords(AdminDto admin, int pageIndex, int pageSize, DateTime? start, DateTime? end);

        /// <summary>
        /// 获取司机动态信息
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <returns></returns>
        DriverDynamicDto GetDriverDynamic(AdminDto admin);

        /// <summary>
        /// 获取待处理任务
        /// </summary>
        /// <param name="admin">管理员信息</param>
        /// <param name="taskType">任务类型</param>
        /// <returns></returns>
        PendingTasksDto GetPendingTasks(AdminDto admin, TaskTypeEnum taskType);
    }
}
